package com.freud.logic.business.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.freud.framework.base.BaseService;
import com.freud.logic.business.bean.District;
import com.freud.logic.business.mapper.DistrictMapper;

@Service
@Transactional
public class DistrictService extends BaseService {

	@Autowired
	private DistrictMapper districtMapper;

	public List<District> getAll() {
		return districtMapper.getAll();
	}

	public District getById(int id) {
		return districtMapper.getById(id);
	}
}
